<?php
class RateCodesController extends AppController {
    public $name    = 'RateCodes';
    public $helpers = array('Form');
    public $scaffold;

    public function listbox () {
        $data = $this->RateCode->find('all', array(
            'recursive' => -1,
            'fields'    => array('id', 'code', 'description'),
            'order'     => 'code ASC'
        ));

        $prefix = isset($this->params['form']['prefix']) ? $this->params['form']['prefix'].'-' : '';

        $this->set('data', $data);
        $this->set('prefix', $prefix);
        $this->render('ax.listbox', 'blank');
    } // listbox
} // RateCodesController
?>